<?php

class ofPropelRS
{
	/**
	 * 
	 *
	 */
	const CLASS_NAME = "ofPropelRS";
	
	public function get($column)
	{
		return $this->$column;
	}
	
	public function getDate($column, $format="%Y-%m-%d")
	{
		$ts = strtotime($this->$column);
		if(!strpos($format,"%"))
		{
			return date($format, $ts);
		}
		
		return strftime($format, $ts);
	}
	
	public function getRow()
	{
		return get_object_vars($this);
	}
	
}